package com.xhtt.modules.gathering.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.common.utils.Query;
import com.xhtt.modules.gathering.dao.ReviewCostDao;
import com.xhtt.modules.gathering.entity.ReviewCostEntity;
import com.xhtt.modules.gathering.model.ChargesListModel;
import com.xhtt.modules.gathering.service.ReviewCostService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("webReviewCostService")
public class ReviewCostServiceImpl extends ServiceImpl<ReviewCostDao, ReviewCostEntity> implements ReviewCostService {


    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page page = new Query<ChargesListModel>(params).getPage();
        page.setRecords(baseMapper.queryChargesPage(page, params));
        return new PageUtils(page);
    }

}
